import { defineStore } from 'pinia'
import { staticRoutes } from '../router/staticRoutes/index'

export const useStore = defineStore('main', {
    state: () => {
        return {
            userData:{
                userName: '小小糖',
                phone: '18118890107',
                token: '5201314miniTang'
            },
            isCollapse: true,
            staticRoutes: staticRoutes
        }
    },
    actions: {
        // 左侧菜单伸缩方法
        upDataIsCollapse() {
            this.isCollapse = !this.isCollapse
        }
    },
    getters: {}
})
